﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000981 RID: 2433
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class InterruptMissionEventScRsp : IMessage<InterruptMissionEventScRsp>, IMessage, IEquatable<InterruptMissionEventScRsp>, IDeepCloneable<InterruptMissionEventScRsp>, IBufferMessage
	{
		// Token: 0x17001ED2 RID: 7890
		// (get) Token: 0x06006D38 RID: 27960 RVA: 0x00124D7D File Offset: 0x00122F7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<InterruptMissionEventScRsp> Parser
		{
			get
			{
				return InterruptMissionEventScRsp._parser;
			}
		}

		// Token: 0x17001ED3 RID: 7891
		// (get) Token: 0x06006D39 RID: 27961 RVA: 0x00124D84 File Offset: 0x00122F84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return InterruptMissionEventScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001ED4 RID: 7892
		// (get) Token: 0x06006D3A RID: 27962 RVA: 0x00124D96 File Offset: 0x00122F96
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return InterruptMissionEventScRsp.Descriptor;
			}
		}

		// Token: 0x06006D3B RID: 27963 RVA: 0x00124D9D File Offset: 0x00122F9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public InterruptMissionEventScRsp()
		{
		}

		// Token: 0x06006D3C RID: 27964 RVA: 0x00124DA5 File Offset: 0x00122FA5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public InterruptMissionEventScRsp(InterruptMissionEventScRsp other) : this()
		{
			this.missionEventId_ = other.missionEventId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006D3D RID: 27965 RVA: 0x00124DD6 File Offset: 0x00122FD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public InterruptMissionEventScRsp Clone()
		{
			return new InterruptMissionEventScRsp(this);
		}

		// Token: 0x17001ED5 RID: 7893
		// (get) Token: 0x06006D3E RID: 27966 RVA: 0x00124DDE File Offset: 0x00122FDE
		// (set) Token: 0x06006D3F RID: 27967 RVA: 0x00124DE6 File Offset: 0x00122FE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MissionEventId
		{
			get
			{
				return this.missionEventId_;
			}
			set
			{
				this.missionEventId_ = value;
			}
		}

		// Token: 0x17001ED6 RID: 7894
		// (get) Token: 0x06006D40 RID: 27968 RVA: 0x00124DEF File Offset: 0x00122FEF
		// (set) Token: 0x06006D41 RID: 27969 RVA: 0x00124DF7 File Offset: 0x00122FF7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06006D42 RID: 27970 RVA: 0x00124E00 File Offset: 0x00123000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as InterruptMissionEventScRsp);
		}

		// Token: 0x06006D43 RID: 27971 RVA: 0x00124E0E File Offset: 0x0012300E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(InterruptMissionEventScRsp other)
		{
			return other != null && (other == this || (this.MissionEventId == other.MissionEventId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006D44 RID: 27972 RVA: 0x00124E4C File Offset: 0x0012304C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MissionEventId != 0U)
			{
				num ^= this.MissionEventId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006D45 RID: 27973 RVA: 0x00124EA4 File Offset: 0x001230A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006D46 RID: 27974 RVA: 0x00124EAC File Offset: 0x001230AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006D47 RID: 27975 RVA: 0x00124EB8 File Offset: 0x001230B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this.MissionEventId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.MissionEventId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006D48 RID: 27976 RVA: 0x00124F14 File Offset: 0x00123114
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MissionEventId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MissionEventId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006D49 RID: 27977 RVA: 0x00124F6C File Offset: 0x0012316C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(InterruptMissionEventScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MissionEventId != 0U)
			{
				this.MissionEventId = other.MissionEventId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006D4A RID: 27978 RVA: 0x00124FBC File Offset: 0x001231BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006D4B RID: 27979 RVA: 0x00124FC8 File Offset: 0x001231C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 112U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MissionEventId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400299E RID: 10654
		private static readonly MessageParser<InterruptMissionEventScRsp> _parser = new MessageParser<InterruptMissionEventScRsp>(() => new InterruptMissionEventScRsp());

		// Token: 0x0400299F RID: 10655
		private UnknownFieldSet _unknownFields;

		// Token: 0x040029A0 RID: 10656
		public const int MissionEventIdFieldNumber = 15;

		// Token: 0x040029A1 RID: 10657
		private uint missionEventId_;

		// Token: 0x040029A2 RID: 10658
		public const int RetcodeFieldNumber = 14;

		// Token: 0x040029A3 RID: 10659
		private uint retcode_;
	}
}
